package cn.bdqn.witcity.config;

import cn.bdqn.witcity.entity.Order;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Map;

@Component
public class SendQueue {
    @Resource
    RabbitTemplate rabbitTemplate;
    public void send(Map<String,Object> map){
        rabbitTemplate.convertAndSend("TestDirectExchange","TestDirectRouting",map);
    }
}
